<?php get_header(); ?>
		<?php 
		if(is_home()) 
		{ 
			include (TEMPLATEPATH . '/featured.php');
			//include (TEMPLATEPATH . '/ads1.php');
			include (TEMPLATEPATH . '/magazine.php');
			//include (TEMPLATEPATH . '/video.php');
			//include (TEMPLATEPATH . '/gallery.php');
			//include (TEMPLATEPATH . '/ads2.php');
		}
		else
		{
			$count = 0; 
        ?>
        <div id="latest_area">
          <h2>Latest Posts</h2>
          <?php if (have_posts()) : ?>
          	<?php while (have_posts()) : the_post(); ?>
            	<?php 
				$ibizmag_postimg_100px = get_post_meta($post->ID, "ibizmag_postimg_100px", true);
				$ibizmag_post_excerpt = get_post_meta($post->ID, "ibizmag_post_excerpt", true);
				?>
              
              <?php
			  if($count > 0)
			  {
			  ?>
              <div class="excerpt_separator"></div>
              <?php
			  }
			  ?>
              
              <div class="excerpt_content">
                <div class="excerpt_image"><img src="<?php echo $ibizmag_postimg_100px; ?>" width="100" height="100" /></div>
                <div class="excerpt_desc">
                    <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
                    <?php custom_excerpt($ibizmag_post_excerpt, 350); ?>
                    <div class="box_read_more"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Read More</a> </div>
                </div>
              </div>
              
              <?php $count++; ?>
          	<?php endwhile; ?>
          <?php else: ?>  
      		<div class="post_message">Sorry The Post You Are Looking For Had Been Deleted.</div>
      	  <?php endif; ?>
          
          
        </div>
        <?php
		}
		?>
      <?php get_sidebar(); ?>
      <?php get_footer(); ?>